package com.junjie.checkin.request.pointRecord;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class PointRecordAdminPageRequest {
    private Integer page; // 当前页码
    private Integer pageSize;  // 每页数量
    private String relatedType;
    private Integer userId;

    public void initDefault(){
        if(page == null || page <=0 ){
            this.page=1;
        }
        if (pageSize == null || pageSize <=0){
            this.pageSize=10;
        }
    }
}
